<template>
    <van-swipe :autoplay="2000" lazy-render indicator-color="#f80">
        <van-swipe-item v-for="image in images">
                <img :src="image">
        </van-swipe-item>
    </van-swipe>
</template>
<script setup>
    const images=['/images/banner1.jpg','/images/banner2.jpg']

</script>

<style lang="less" scoped>
.van-swipe{
    width:100%;
    img{
        width:100%;
    }
}
</style>